<!DOCTYPE html>
<html lang="zh">

<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>18.7 控制流指令</title>

	<style>
		input[type="text"] {
			height: 30px;
			width: 300px;
			margin-bottom: 10px;
			border-radius: 5px;
			padding: 2px;
			font-size: 16px;

		}

		button {
			width: 100px;
			height: 40px;
		}

		input {
			height: 36px;

		}

		pre {
			background-color: beige;
			display: inline-block;
		}

		select {
			width: 200px;
			height: 200px;
		}
	</style>

</head>

<body>

	<!-- 

		v-if 语句

		if 控制流语句


	 -->
	<div id="app">


		<div v-if="role == 'admin' || role=='super' ">
			管理员你好
		</div>
		<div v-else-if="role == 'hr'">
			HR 你好,<br>
			待查看简历列表... 
		</div>
		<div v-else>
			你没有权限访问此页面
		</div>


	</div>


	<script src="../lib/vue.js"></script>
	<script src="js/main.js"></script>

</body>

</html>